package cn.wolfcode.domain;

import com.alibaba.fastjson.JSON;
import lombok.*;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;

@Getter
@Setter
@ToString
@AllArgsConstructor
@NoArgsConstructor
public class ClassInfo {
    private Long id;

    private String name;

    private Integer number;

    private Long employee_id;

    private Employee empName;

    public String getJson(){
        HashMap<String, Object> map = new HashMap<>();
        map.put("id",id);
        map.put("name",name);
        map.put("number",number);
        map.put("employee_id",employee_id);
        return JSON.toJSONString(map);
    }
}